{layout name="index/layout" /}        <!--content-->
<div class="log">
    <div class="clear"></div>
    <div class="query">
        <h5>下级消费信息</h5>
        <div class="form_search">
            <form action="sale.html" method="post">
                <div>
                    <label for="start_date">开始日期：</label>
                    <input id="start_date" type="text" name="start_date" value="{$date.start_date ?? ''}" readonly/>
                </div>
                <div>
                    <label for="end_date">结束日期：</label>
                    <input id="end_date" type="text" name="end_date" value="{$date.end_date ?? ''}" readonly/>
                </div>
                <div>
                    <input id="submit_search" class="submit_search" type="submit" value="搜索">
                    <input class="submit_search" type="button" value="刷新" onclick="location.reload()">
                    <span>{$ps ?? ''}</span>
                </div>
            </form>
        </div>
        <div class="table">
            <table>
                <tr>
                    <th>会员卡号</th>
                    <th>会员姓名</th>
                    <th>级别</th>
                    <th>介绍人</th>
                    <th>消费时间</th>
                    <th>消费金额</th>
                    <th>消费积分</th>
                    <th>奖励积分</th>
                    <th>备注</th>
                </tr>
                {if $sales neq false}
                {foreach $sales as $sale}
                <tr class="table_query">
                    <td>{$sale.Card}</td>
                    <td>{$sale.Member}</td>
                    <td>{$sale.Level-$offset.Level}</td>
                    <td>{$sale.Introducer}</td>
                    <td>{$sale.CreateDate|substr=0,-3}</td>
                    {if $sale.SellID eq null}
                    <td>新介绍奖励</td>
                    <td>无</td>
                    {else}
                    <td>{$sale.Income}</td>
                    <td>{$sale.spoint|round}</td>
                    {/if}
                    <td>{$sale.Point|round}</td>
                    <td>{$sale.Remark}</td>
                </tr>
                {/foreach}
                {if $sales->render() eq null}
                {else}
                <tr class="table_query">
                    <td colspan="9">{$sales->render()}</td>
                </tr>
                {/if}
                {else}
                <tr>
                    <td colspan="9" class="table_not">没有查到下级消费信息</td>
                    {/if}
                </tr>
            </table>
        </div>
    </div>
</div>
<div class="clear"></div>
<script>
    var action = document.getElementById('sale');
    action.className = 'action';
</script>